package com.itwh.project.service;

import com.itwh.project.common.ResultObj;
import com.itwh.project.domain.LabLaboratoryCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itwh.project.mapper.LabLaboratoryCourseMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigInteger;
import java.util.List;

/**
 * <p>
 * 实验室-课程：本实验室可以完成哪些课程的实验 服务类
 * </p>
 *
 * @author 翁煌
 * @since 2020-07-05
 */
public interface LabLaboratoryCourseService extends IService<LabLaboratoryCourse> {

    //找出此实验室有哪些课程可以做
    public List<Long> findCourseIdByLabId(Long lab_id);

    //保存这个课程id和这间实验室的关系
    public ResultObj addCourseId(Long college_id, Long lab_id, Long cid, Long by_who, Boolean deleted, Long last_version);

    //删除实验室-课程的关系
    public ResultObj updateDeletedByLabIdAndCId(Long lab_id,Long cid);
}
